package com.mifengkong.cygtools.model;

import com.mifengkong.frtools.http.request.HttpFunction;

import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by WANG on 18/1/12.
 */

public class ReadAllMessageReadModel extends BaseJJCardModel {
    public static ReadAllMessageReadModel getInstance() {
        return getPresent(ReadAllMessageReadModel.class);
    }

    public void execute(Observer<String> observer) {
        Observable observable = mServletApi.setMessageRead(mParams).map(new HttpFunction());
        toSubscribe(observable, observer);
    }
}
